package com.caocaog.market.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caocaog.market.entity.Protocol;
import org.apache.ibatis.annotations.Param;

/**
 * 协议管理
 *
 * @author chechen
 * @date 2021-12-28
 */
public interface ProtocolMapper extends BaseMapper<Protocol> {

    IPage<Protocol> queryProtocolPage(Page<Protocol> page, @Param("protocol") Protocol protocol);

    Protocol getProtocolByType(int type);
}
